<?php //pack11class

class ObjectCardNavigationImage extends Module {

    public $events="";
    public $image="noPhoto.gif";
    const FOLDER="photos/small/";

    public function setup() {
        $this->events=str_replace('\"', '"', "onClick=\"ObjectCardNavigation.open(this);\"");
        if($this->param) $this->image=$this->param;
        //$this->setBody("<img src='".self::FOLDER.$this->image."'/>");
        $this->setBody(self::FOLDER.$this->image);
    }

}
?>
